using UnityEngine;

namespace MoonFramework
{
    public abstract class BaseMonoManager : MonoBehaviour
    {
        public virtual void Init()
        {
        }
    }

    public abstract class BaseMonoManager<T> : BaseMonoManager where T : BaseMonoManager<T>
    {
        public static T Instance;

        /// <summary>
        ///     管理器的初始化
        /// </summary>
        public override void Init()
        {
            Instance = this as T;
        }
    }
}